<?php 
/**
 * @ smarty 初始化类
 * @ auth yuanta@wondershare.com
*/

require 'libs/Smarty.class.php';
class tempsmarty extends Smarty {
    function __construct(){
        parent::Smarty();
        $this->template_dir = './templates/'; 
        $this->compile_dir  = './tmp/templates_c/';
        $this->cache_dir    = './tmp/cache/'; 
		$this->config_dir   = './configs/'; 
        $this->left_delimiter 	= '<{'; 
        $this->right_delimiter 	= '}>';
        $this->caching 			= false; 
		$this->compile_check 	= true;

        if(!is_dir($this->compile_dir)){
            mkdir($this->compile_dir);
        }
        if(!is_dir($this->cache_dir)){
            mkdir($this->cache_dir);
        }
    }
}
?>